
.text
.data
.comm buffer,256,32
//buffer:
//	.zero 256

.section .rodata 
.LC0:
	.string "%d"

.LC1:
	.string "%s"


.text
.globl main

main:
	pushq %rbp
	movq %rsp,%rbp
	subq $0x1000,%rsp

	movl $12345,-0x1000(%rbp) /* i */
	movl $0,-0xff8(%rbp) /* buffer */

	movl -0x1000(%rbp),%edx /* i */
	leaq .LC0(%rip),%rsi 
	leaq buffer(%rip),%rdi /* buffer */
	call sprintf 

	leaq buffer(%rip),%rsi /* buffer */
	leaq .LC1(%rip),%rdi 
	movl $0,%eax 
	call printf 

	movl $0,%eax
	leave
	ret
